import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import Hot from '@/views/Hot'
import Movie from '@/views/Movie'
import Top from '@/views/Top'
import Detail from '@/views/Detail'

const routes = [

   {path:'/',redirect:'/hot'},
    {path:'/hot', component: Hot},
    {path:'/movie', component: Movie},
    {path:'/top', component: Top},
    {path:'/detail/:id', component: Detail}

]

const router = new VueRouter({
  routes
})

export default router
